import com.test.demo.Student;
import com.test.demo.Test;
import com.test.demo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        //User user = context.getBean("user",User.class);
        //Test test = context.getBean("test",Test.class);
        //user.sayHello();
        //test.getStudent().sayHello();
        Student student = context.getBean("GetStudent",Student.class);
        student.sayHello();
    }
}
